package net.lzzy.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import javax.xml.stream.events.Comment;

public interface CommentRepository extends JpaRepository<Comment, Integer> {
@Query(value = "UPDATE t_comment SET content=?2 where id=？1", nativeQuery =
        true)
@Modifying
@Transactional
public int updateComment(Integer Id, String content);
        }
